﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace training
{
    class FindIndex
    {
        static void Main(string[] args)
        {
            string word = "LETTER";
            char[] arr = new char[27];
            for (int i = 0; i < arr.Length; i++)
            {
                arr[i] = (char)(i + 65);
                for (int j = 0; j < word.Length; j++)
                {
                    if (word[j]==arr[i])
                    {
                        Console.WriteLine("The index of {0} is {1}", word[j], i);
                    }
                }
            }
            

                
        }
    }
}
